package swingxrcp.framework.server.service;

import swingxrcp.framework.model.environment.MessageSource;
import swingxrcp.framework.util.log.Logger;
import swingxrcp.framework.util.log.LoggerFactory;

/**
 * 抽象Service基类
 *
 * @author liangfei
 *
 */
public abstract class AbstractService implements Service {

	/**
	 * 日志输出接口
	 */
	protected final Logger logger = LoggerFactory.getLogger(getClass());

	/**
	 * 持久化服务
	 */
	protected PersistentService persistentService;

	public void setPersistentService(PersistentService persistentService) {
		this.persistentService = persistentService;
	}

	/**
	 * 国际化信息源
	 */
	protected MessageSource messageSource;

	public void setMessageSource(MessageSource messageSource) {
		this.messageSource = messageSource;
	}

}
